import axios from "axios";
 const  baseurl = axios.create({
    baseURL:"http://node.dayuan0307.top:300",
    timeout:6000
})

baseurl.interceptors.request.use(config=>{
    const token = localStorage.getItem("token")
    if(token){
        config.headers.token = token
    }
      
    return config
})
baseurl.interceptors.response.use(data=>{
    return data
})
export default baseurl